package com.ruoyi.airsystem.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 警告管理对象 air_warnings
 * @date 2025-04-18
 */
public class AirWarnings extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 警告ID */
    private Long warningId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 警告信息 */
    @Excel(name = "警告信息")
    private String warningMessage;


    /** 警告时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "警告时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warningTime;




    private String familyName;
    private String roomName;
    private Long familyId;
    private Long roomId;
    private String deviceName;
    public String getDeviceName() {
        return deviceName;
    }
    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }
    public Long getFamilyId() {
        return familyId;
    }
    public void setFamilyId(Long familyId) {
        this.familyId = familyId;
    }
    public Long getRoomId() {
        return roomId;
    }
    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }
    public String getFamilyName() {
        return familyName;
    }
    public void setFamilyName(String familyName) {
        this.familyName = familyName;
    }
    public String getRoomName() {
        return roomName;
    }
    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }





    public void setWarningId(Long warningId)
    {
        this.warningId = warningId;
    }

    public Long getWarningId() 
    {
        return warningId;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setWarningMessage(String warningMessage) 
    {
        this.warningMessage = warningMessage;
    }

    public String getWarningMessage() 
    {
        return warningMessage;
    }
    public void setWarningTime(Date warningTime) 
    {
        this.warningTime = warningTime;
    }

    public Date getWarningTime() 
    {
        return warningTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("warningId", getWarningId())
            .append("deviceId", getDeviceId())
            .append("warningMessage", getWarningMessage())
            .append("warningTime", getWarningTime())
            .toString();
    }
}
